package com.wodsy.phoenix.dataobject.orderc.model;

import com.wodsy.phoenix.dataobject.base.PhoenixObject;

import javax.persistence.*;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * OrderBuyerExt entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_order_buyer_ext", catalog = "orderc")
public class OrderBuyerExt extends PhoenixObject {

	// Fields

	private Integer id;
	private Long orderId;
	private String sellerUserName;
	private String shopName;
	private Date createTime;
	private Date updateTime;

	// Constructors

	/** default constructor */
	public OrderBuyerExt() {
	}

	/** minimal constructor */
	public OrderBuyerExt(Long orderId, String sellerUserName, String shopName,
			Date createTime) {
		this.orderId = orderId;
		this.sellerUserName = sellerUserName;
		this.shopName = shopName;
		this.createTime = createTime;
	}

	/** full constructor */
	public OrderBuyerExt(Long orderId, String sellerUserName, String shopName,
			Date createTime, Date updateTime) {
		this.orderId = orderId;
		this.sellerUserName = sellerUserName;
		this.shopName = shopName;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "order_id", nullable = false)
	public Long getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	@Column(name = "seller_user_name", nullable = false, length = 30)
	public String getSellerUserName() {
		return this.sellerUserName;
	}

	public void setSellerUserName(String sellerUserName) {
		this.sellerUserName = sellerUserName;
	}

	@Column(name = "shop_name", nullable = false, length = 30)
	public String getShopName() {
		return this.shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	@Column(name = "create_time", nullable = false, length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "update_time", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}